//package com.waste.game.controller;
//
//import com.waste.game.entity.GameListBean;
//import com.waste.game.service.GameListService;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//
//import java.sql.Date;
//
//@Slf4j
//@Controller
//@RequestMapping("/back/add")
//public class BackBodyController {
//
//    @Autowired
//    GameListService gameListService;
//
//    @GetMapping
//    public String showAdd(){
//        return "/back/inst";
//    }
//
//    @PostMapping
//    public String add(GameListBean gameListBean){
//        int one = gameListService.insertOne(gameListBean);
//        int art = gameListService.getArtId(gameListBean.getGameTitle());
//        gameListBean.setArtId(art);
//        int oneBig = gameListService.insertOneBig(gameListBean);
//        int two = gameListService.insertTwo(gameListBean);
//        int three = gameListService.insertThree(gameListBean);
//        log.info("get:{}",gameListBean);
//        return "redirect:/index";
//    }
//}
